/**
 * 
 */
package com.fgbf.todo.MainClasses;

/**
 * Represents a User - person using the TODO list
 * @author BPB, edited by Warren Shenk
 * @date 2/20/2012
 */
public class User {
	
	////////////////////////////////////////////////////////////////////////////////////////
	// INSTANCE DATA
	////////////////////////////////////////////////////////////////////////////////////////
	
	/**
	 * Username and password Strings
	 */
	private String username, password;
	
	
	////////////////////////////////////////////////////////////////////////////////////////
	// CONSTRUCTORS
	////////////////////////////////////////////////////////////////////////////////////////
	
	/**
	 * Default Constructor
	 */
	public User() {
		
	}
	//-------------------------------------------------------------------------------------
	
	/**
	 * Construcotr, sets name
	 * @param username The desired username
	 */
	public User(String username) {
		this.username = username;
	}
	//-------------------------------------------------------------------------------------
	
	/**
	 * Constructor, sets username and password
	 * @param username The desired username 
	 * @param password The desired password
	 */
	public User(String username, String password) {
		this.username = username;
		this.password = password;
		
	}
	//-------------------------------------------------------------------------------------

	
	////////////////////////////////////////////////////////////////////////////////////////
	// METHODS
	////////////////////////////////////////////////////////////////////////////////////////
	
	/**
	 * @return A String representation of the username and password
	 */
	public String toString() {
		return "USERNAME: " + this.username + "/n" + "PASSWORD: " + this.password;
	}
	//-------------------------------------------------------------------------------------
	
	
	////////////////////////////////////////////////////////////////////////////////////////
	// ACCESSORS AND MUTATORS
	////////////////////////////////////////////////////////////////////////////////////////
	
	/**
	 * @return The username
	 */
	public String getUsername() {
		return username;
	}
	//-------------------------------------------------------------------------------------

	/**
	 * @param username The desired username
	 */
	public void setUsername(String username) {
		this.username = username;
	}
	//-------------------------------------------------------------------------------------

	/**
	 * @return The password
	 */
	public String getPassword() {
		return password;
	}
	//-------------------------------------------------------------------------------------

	/**
	 * @param password The desired password
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	//-------------------------------------------------------------------------------------


	

	

}
